const { defineConfig } = require('@vue/cli-service')
const JiessBase = require('@jiess/utils/webpack');
const { JiessResolver } = require('@jiess/utils/resolver');
const AutoImport = require('unplugin-auto-import/webpack').default;
module.exports = defineConfig({
	transpileDependencies: true,
	configureWebpack: {
		plugins: [
			new JiessBase({ env: 'vue2' }),
			AutoImport({
				resolvers: [JiessResolver()],
				eslintrc: {
					enabled: true, // Default `false`
					filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
					globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
				},
			}),
		]
	}
})